import request from '@/utils/request';

/**
 * 积分订单列表
 * @param query 
 * @returns 
 */
export const listPage = (query) => {
  return request({
    url: '/integralOrder/list',
    method: 'get',
    params: query
  });
};

/**
 * 详情
 * @param query 
 * @returns 
 */
export const info = (query) => {
  return request({
    url: `/integralOrder/detail/${query.id}`,
    method: 'get',
  });
};

// 发货
export const sendApi = (query) => {
  return request({
    url: `/integralOrder/deliver`,
    method: 'post',
    data: query
  });
};